<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>gui2py: Fichero Fuente gui/controls/image.py</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../edit.gif"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gui2py
   &#160;<span id="projectnumber">0.9.3</span>
   </div>
   <div id="projectbrief">Interfaz de desarrollo de aplicaciones graficas</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generado por Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Buscar');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="../../namespaces.html"><span>Paquetes</span></a></li>
      <li><a href="../../annotated.html"><span>Clases</span></a></li>
      <li class="current"><a href="../../files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('de/d62/gui_2controls_2image_8py_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Clases</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Propiedades</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">image.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../de/d62/gui_2controls_2image_8py.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">#!/usr/bin/python</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"># -*- coding: utf-8 -*-</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="stringliteral">&quot;gui2py&#39;s basic Image control (uses wx.StaticBitmap)&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;__author__ = <span class="stringliteral">&quot;Mariano Reingart (reingart@gmail.com)&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;__copyright__ = <span class="stringliteral">&quot;Copyright (C) 2013- Mariano Reingart&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"># Initial implementation was based on PythonCard&#39;s Image component, </span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"># but redesigned and overhauled a lot (specs renamed, events refactorized, etc.)</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">import</span> wx</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">from</span> ..event <span class="keyword">import</span> FormEvent</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">from</span> ..component <span class="keyword">import</span> Control, Spec, EventSpec, InitSpec, StyleSpec</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">from</span> ..graphic <span class="keyword">import</span> Bitmap</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">from</span> .. <span class="keyword">import</span> images </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;USE_GENERIC = <span class="keyword">False</span> <span class="comment">## wx.Platform == &#39;__WXGTK__&#39;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keywordflow">if</span> USE_GENERIC:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keyword">from</span> wx.lib.statbmp <span class="keyword">import</span> GenStaticBitmap <span class="keyword">as</span> StaticBitmap</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keywordflow">elif</span> wx.VERSION &gt;= (2, 9, 5) <span class="keywordflow">and</span> <span class="stringliteral">&#39;phoenix&#39;</span> <span class="keywordflow">in</span> wx.version():</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="comment"># WORKAROUND for Phoenix: bitmap -&gt; label</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keyword">class </span>StaticBitmap(wx.StaticBitmap):</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="../../da/d10/classgui_1_1controls_1_1image_1_1StaticBitmap.html#aff458df67c09cb4c829d0d11e8d59ebd">   26</a></span>&#160;        <span class="keyword">def </span><a class="code" href="../../da/d10/classgui_1_1controls_1_1image_1_1StaticBitmap.html#aff458df67c09cb4c829d0d11e8d59ebd">__init__</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;            kwargs[<span class="stringliteral">&#39;label&#39;</span>] = kwargs[<span class="stringliteral">&#39;bitmap&#39;</span>]</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            del kwargs[<span class="stringliteral">&#39;bitmap&#39;</span>]</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;            wx.StaticBitmap.__init__(self, *args, **kwargs)         </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    StaticBitmap = wx.StaticBitmap</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">class </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html">Image</a>(Control):</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="stringliteral">&quot;A static image.&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    _wx_class = StaticBitmap</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    _style = wx.NO_FULL_REPAINT_ON_RESIZE | wx.CLIP_SIBLINGS</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    _image = images.image</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a4e79e9b444e7041186a8777cbc8f5084">   42</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a4e79e9b444e7041186a8777cbc8f5084">__init__</a>(self, parent=None, **kwargs):</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="comment"># set safe default for construction (if designer is not rebuilding!)</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="keywordflow">if</span> <span class="keywordflow">not</span> hasattr(self, <span class="stringliteral">&quot;_filename&quot;</span>):</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad081301bfba70d3ae8048028f1a5070a">_auto_size</a> = self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a061434084aeb866cf8cfb37e07f22b19">_stretch</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">_filename</a> = kwargs.get(<span class="stringliteral">&#39;filename&#39;</span>)</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            <span class="comment"># do not create bitmap if no filename is given</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            <span class="keywordflow">if</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">_filename</a>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abbed8aeaf85a60e9bcd2d645afbed95d">_size</a> = kwargs.get(<span class="stringliteral">&#39;size&#39;</span>, (-1, -1))</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a> = Bitmap(filename=self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">_filename</a>, size=self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abbed8aeaf85a60e9bcd2d645afbed95d">_size</a>)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;auto_size&#39;</span> <span class="keywordflow">in</span> kwargs <span class="keywordflow">and</span> kwargs[<span class="stringliteral">&#39;auto_size&#39;</span>] <span class="keywordflow">and</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a>:</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad081301bfba70d3ae8048028f1a5070a">_auto_size</a> = kwargs[<span class="stringliteral">&#39;auto_size&#39;</span>]</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            kwargs[<span class="stringliteral">&#39;width&#39;</span>] = self._bitmap.get_width()</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            kwargs[<span class="stringliteral">&#39;height&#39;</span>] = self._bitmap.get_height()</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;stretch&#39;</span> <span class="keywordflow">in</span> kwargs:</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            _stretch = kwargs[<span class="stringliteral">&#39;stretch&#39;</span>]</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            del kwargs[<span class="stringliteral">&#39;stretch&#39;</span>]</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            _stretch = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="comment">##if kwargs[&#39;border&#39;] == &#39;transparent&#39;:</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="comment">##    mask = wx.MaskColour(self._bitmap, wxBLACK)</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="comment">##    self._bitmap.SetMask(mask)</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">if</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a>:</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            kwargs[<span class="stringliteral">&#39;bitmap&#39;</span>] = self._bitmap.get_bits()</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;               </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        Control.__init__(</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            self,</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            parent,</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            **kwargs </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            )</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">if</span> _stretch <span class="keywordflow">is</span> <span class="keywordflow">not</span> <span class="keywordtype">None</span> <span class="keywordflow">and</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a>:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a51e12645c4aff7f0eceaad6b067fe3a4">stretch</a> = _stretch</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        self.wx_obj.Bind(wx.EVT_WINDOW_DESTROY, self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a89ce1e1df706e53321b9deccfbaa6089">_OnDestroy</a>)</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a89ce1e1df706e53321b9deccfbaa6089">   82</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a89ce1e1df706e53321b9deccfbaa6089">_OnDestroy</a>(self, event):</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="comment"># memory leak cleanup</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        event.Skip()</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="comment"># KEA added getBitmap, setBitmap</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abefe6265c029dc7ba14c2f24b6d7a654">   88</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abefe6265c029dc7ba14c2f24b6d7a654">_get_bitmap</a>(self):</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordflow">return</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#aca43b1e7c37875f49ed020c9130ec5e4">   91</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#aca43b1e7c37875f49ed020c9130ec5e4">_set_bitmap</a>(self, bmp):</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a> = bmp</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        self.wx_obj.SetBitmap(bmp.get_bits())</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="comment"># update dimension</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a9d86d874676aafde1158559c0c70266a">auto_size</a> = self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a9d86d874676aafde1158559c0c70266a">auto_size</a></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a51e12645c4aff7f0eceaad6b067fe3a4">stretch</a> = self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a51e12645c4aff7f0eceaad6b067fe3a4">stretch</a></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="comment"># may actually need to refresh the panel as well</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="comment"># depending on the size of the new bitmap compared</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="comment"># to the old one</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="comment"># in addition, the size of the image or imagebutton needs</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="comment"># to be set appropriately after changing the bitmap so</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="comment"># there are still a few issues to work out</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        self.wx_obj.Refresh()</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    </div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad3a8d741ec87555cafbcd7369f3e5807">  107</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad3a8d741ec87555cafbcd7369f3e5807">_set_auto_size</a>(self, value):</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad081301bfba70d3ae8048028f1a5070a">_auto_size</a> = value</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">if</span> value <span class="keywordflow">and</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a>:</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            w = self._bitmap.get_width()</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            h = self._bitmap.get_height()</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a1b5008b2c4dc0e5799da4e8fa8e7159c">size</a> = (w, h)    </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a27946cb9b32c5dcd20af09b8d4747b94">  114</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a27946cb9b32c5dcd20af09b8d4747b94">_set_stretch</a>(self, value):</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a061434084aeb866cf8cfb37e07f22b19">_stretch</a> = value</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">if</span> value:</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            self._bitmap.rescale(*self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a1b5008b2c4dc0e5799da4e8fa8e7159c">size</a>)</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="stringliteral">    # KEA do we query the Bitmap to find the actual dimensions</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="stringliteral">    # _size can contain -1, and -2</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="stringliteral">    # or provide a special getBitmapSize method?</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="stringliteral">    # this getSize is actually the same as its parent</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="stringliteral">    def _getSize( self ) :</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="stringliteral">        return self.GetSizeTuple()   # get the actual size, not (-1, -1)</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="stringliteral">    &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="comment"># KEA special handling for -2 size option</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a7ba6ab25d9d2a0428d3af35775d9b023">  129</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a7ba6ab25d9d2a0428d3af35775d9b023">_set_size</a>(self, size):</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordflow">if</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a>:</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abbed8aeaf85a60e9bcd2d645afbed95d">_size</a> = size <span class="keywordflow">or</span> (-1, -1)</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            w = self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abbed8aeaf85a60e9bcd2d645afbed95d">_size</a>[0]</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            <span class="keywordflow">if</span> w == -2:</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                w = self._bitmap.getWidth()</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            h = self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abbed8aeaf85a60e9bcd2d645afbed95d">_size</a>[1]</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            <span class="keywordflow">if</span> h == -2:</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                h = self._bitmap.getHeight()</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            <span class="comment">##print &quot;Size&quot;, (w, h), self._name, self._filename</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            Control._set_size(self, (w, h))</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="keywordflow">elif</span> size:</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;            Control._set_size(self, size)</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="comment"># KEA 2001-08-02</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="comment"># right now the image is loaded from a filename</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="comment"># during initialization</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="comment"># but later these might not make any sense</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="comment"># if setBitmap is used directly in user code</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a063d4aba75e842c5651591abef88156d">  148</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a063d4aba75e842c5651591abef88156d">_get_filename</a>( self ) :</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="keywordflow">return</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">_filename</a></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="comment"># KEA 2001-08-14</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment"># if we&#39;re going to support setting the file</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="comment"># after initialization, then this will need to handle the bitmap loading</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="comment"># overhead</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a05a34a8bcf950c6f4d9d7e27c5bcc38f">  155</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a05a34a8bcf950c6f4d9d7e27c5bcc38f">_set_filename</a>(self, filename):</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">_filename</a> = filename</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">if</span> filename:</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#aca43b1e7c37875f49ed020c9130ec5e4">_set_bitmap</a>(Bitmap(filename))</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a3ff3e353ad075f5a185b3a1611028946">  162</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a3ff3e353ad075f5a185b3a1611028946">_set_bgcolor</a>(self, color):</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        color = self._get_default_color(color)</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">if</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">_filename</a> == <span class="stringliteral">&#39;&#39;</span> <span class="keywordflow">and</span> self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">_bitmap</a>:</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            bmp = self._bitmap.get_bits()</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            dc = wx.MemoryDC()</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            dc.SelectObject(bmp)</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            dc.SetBackground(wx.Brush(color))</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            dc.Clear()</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            dc.SelectObject(wx.NullBitmap)</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        self.wx_obj.SetBackgroundColour(color)</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        self.wx_obj.Refresh()   <span class="comment"># KEA wxPython bug?</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    bgcolor = Spec(Control._get_bgcolor, _set_bgcolor, type=<span class="stringliteral">&quot;color&quot;</span>)</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    bitmap = InitSpec(_get_bitmap, _set_bitmap, default=<span class="keywordtype">None</span>)</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    filename = Spec(_get_filename, _set_filename, default=<span class="stringliteral">&quot;&quot;</span>, type=<span class="stringliteral">&quot;image_file&quot;</span>)</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    size = Spec(Control._get_size, _set_size)</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    auto_size = Spec(<span class="keyword">lambda</span> self: self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad081301bfba70d3ae8048028f1a5070a">_auto_size</a>,</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                     <span class="keyword">lambda</span> self, value: self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad3a8d741ec87555cafbcd7369f3e5807">_set_auto_size</a>(value), </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                     doc=<span class="stringliteral">&quot;Automatically resize to match the loaded image&quot;</span>, </div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                     default=<span class="keyword">True</span>, type=<span class="stringliteral">&#39;boolean&#39;</span>)</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    stretch = Spec(<span class="keyword">lambda</span> self: self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a061434084aeb866cf8cfb37e07f22b19">_stretch</a>,</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                   <span class="keyword">lambda</span> self, value: self.<a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a27946cb9b32c5dcd20af09b8d4747b94">_set_stretch</a>(value),</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                   doc=<span class="stringliteral">&quot;Automatically resize the image to match control&quot;</span>, </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                   default=<span class="keyword">False</span>, type=<span class="stringliteral">&#39;boolean&#39;</span>)</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="comment">#image = &#39;presence&#39; : &#39;optional&#39;, &#39;default&#39;:&#39;&#39; },</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keywordflow">if</span> __name__ == <span class="stringliteral">&quot;__main__&quot;</span>:</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="comment"># basic test until unit_test</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    app = wx.App(redirect=<span class="keyword">False</span>)</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    frame = wx.Frame(<span class="keywordtype">None</span>)</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    i = <a class="code" href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html">Image</a>(frame, filename=<span class="stringliteral">&quot;splash.png&quot;</span>, name=<span class="stringliteral">&#39;imgtest&#39;</span>)</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    i.onmousemove = <span class="stringliteral">&quot;print &#39;moving...&#39;&quot;</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    frame.Show()</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    app.MainLoop()</div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a063d4aba75e842c5651591abef88156d"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a063d4aba75e842c5651591abef88156d">gui.controls.image.Image._get_filename</a></div><div class="ttdeci">def _get_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00148">image.py:148</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a4e79e9b444e7041186a8777cbc8f5084"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a4e79e9b444e7041186a8777cbc8f5084">gui.controls.image.Image.__init__</a></div><div class="ttdeci">def __init__</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00042">image.py:42</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_ae3012679f0e01b4faee729255f2acf81"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ae3012679f0e01b4faee729255f2acf81">gui.controls.image.Image._bitmap</a></div><div class="ttdeci">_bitmap</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00050">image.py:50</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a9d86d874676aafde1158559c0c70266a"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a9d86d874676aafde1158559c0c70266a">gui.controls.image.Image.auto_size</a></div><div class="ttdeci">tuple auto_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00178">image.py:178</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_abbed8aeaf85a60e9bcd2d645afbed95d"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abbed8aeaf85a60e9bcd2d645afbed95d">gui.controls.image.Image._size</a></div><div class="ttdeci">_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00049">image.py:49</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a061434084aeb866cf8cfb37e07f22b19"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a061434084aeb866cf8cfb37e07f22b19">gui.controls.image.Image._stretch</a></div><div class="ttdeci">_stretch</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00045">image.py:45</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a51e12645c4aff7f0eceaad6b067fe3a4"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a51e12645c4aff7f0eceaad6b067fe3a4">gui.controls.image.Image.stretch</a></div><div class="ttdeci">tuple stretch</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00182">image.py:182</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a7ba6ab25d9d2a0428d3af35775d9b023"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a7ba6ab25d9d2a0428d3af35775d9b023">gui.controls.image.Image._set_size</a></div><div class="ttdeci">def _set_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00129">image.py:129</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a27946cb9b32c5dcd20af09b8d4747b94"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a27946cb9b32c5dcd20af09b8d4747b94">gui.controls.image.Image._set_stretch</a></div><div class="ttdeci">def _set_stretch</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00114">image.py:114</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html">gui.controls.image.Image</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00034">image.py:34</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_aca43b1e7c37875f49ed020c9130ec5e4"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#aca43b1e7c37875f49ed020c9130ec5e4">gui.controls.image.Image._set_bitmap</a></div><div class="ttdeci">def _set_bitmap</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00091">image.py:91</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a05a34a8bcf950c6f4d9d7e27c5bcc38f"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a05a34a8bcf950c6f4d9d7e27c5bcc38f">gui.controls.image.Image._set_filename</a></div><div class="ttdeci">def _set_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00155">image.py:155</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_abefe6265c029dc7ba14c2f24b6d7a654"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#abefe6265c029dc7ba14c2f24b6d7a654">gui.controls.image.Image._get_bitmap</a></div><div class="ttdeci">def _get_bitmap</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00088">image.py:88</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a3ff3e353ad075f5a185b3a1611028946"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a3ff3e353ad075f5a185b3a1611028946">gui.controls.image.Image._set_bgcolor</a></div><div class="ttdeci">def _set_bgcolor</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00162">image.py:162</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_ad3a8d741ec87555cafbcd7369f3e5807"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad3a8d741ec87555cafbcd7369f3e5807">gui.controls.image.Image._set_auto_size</a></div><div class="ttdeci">def _set_auto_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00107">image.py:107</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a1b5008b2c4dc0e5799da4e8fa8e7159c"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a1b5008b2c4dc0e5799da4e8fa8e7159c">gui.controls.image.Image.size</a></div><div class="ttdeci">tuple size</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00177">image.py:177</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1StaticBitmap_html_aff458df67c09cb4c829d0d11e8d59ebd"><div class="ttname"><a href="../../da/d10/classgui_1_1controls_1_1image_1_1StaticBitmap.html#aff458df67c09cb4c829d0d11e8d59ebd">gui.controls.image.StaticBitmap.__init__</a></div><div class="ttdeci">def __init__</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00026">image.py:26</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a139376f4ecc4430c4e3fd52f62c94d1e"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a139376f4ecc4430c4e3fd52f62c94d1e">gui.controls.image.Image._filename</a></div><div class="ttdeci">_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00046">image.py:46</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_a89ce1e1df706e53321b9deccfbaa6089"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#a89ce1e1df706e53321b9deccfbaa6089">gui.controls.image.Image._OnDestroy</a></div><div class="ttdeci">def _OnDestroy</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00082">image.py:82</a></div></div>
<div class="ttc" id="classgui_1_1controls_1_1image_1_1Image_html_ad081301bfba70d3ae8048028f1a5070a"><div class="ttname"><a href="../../d8/d4e/classgui_1_1controls_1_1image_1_1Image.html#ad081301bfba70d3ae8048028f1a5070a">gui.controls.image.Image._auto_size</a></div><div class="ttdeci">_auto_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/df6/build_2lib_8linux-x86__64-2_87_2gui_2controls_2image_8py_source.html#l00045">image.py:45</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_be831313eee9167e67543a36aa74e60d.html">gui</a></li><li class="navelem"><a class="el" href="../../dir_c9134ecc933fd451a588b777913cb500.html">controls</a></li><li class="navelem"><a class="el" href="../../de/d62/gui_2controls_2image_8py.html">image.py</a></li>
    <li class="footer">Generado el Domingo, 7 de Diciembre de 2014 18:59:47 para gui2py por
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
